package org.middlewaregr.bp;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.middlewaregr.services.ThesesServiceCaller;

public class WriteReviewThesesTask {
	public void writeReviewTheses(Integer theses_id, String reviewer,
			String relevance_to_topic, String review_description,
			String layout_and_style, String contributions,
			String recommendations, String conclusion, Integer assessment) {

		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");

		try {
			ThesesServiceCaller.createThesesReview(theses_id, reviewer,
					dateFormat.format(new Date()), relevance_to_topic,
					review_description, layout_and_style, contributions,
					recommendations, conclusion, assessment);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
